package com.atguigu.guli.service.sms.controller;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.sms.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/api/sms")
public class SmsController {
    @Autowired
    SmsService smsService;
    //1、处理发送验证码请求
    @GetMapping("send/{mobile}")
    public R sendMsg(@PathVariable String mobile){
        smsService.sendMsg(mobile);
        return R.ok();
    }
}
